import java.util.ArrayList;


public class Product {
	String type;
	private int stock;
	private int quality;
	private int price;
	ArrayList<Model> models;

	public Product(int quality, int price) {
		setStock(0);
		setQuality(quality);
		setPrice(price);
		models = new ArrayList<Model>();
	}
	
	public Product(String type, int quality, int price) {
		this(quality, price);
		this.type = type;
	}
	
	public void addModel(Model m) {
		models.add(m);
	}
	
	public ArrayList<Model> getModels() {
		return models;
	}
	
	public void incStock() {
		stock ++;
	}
	
	public void decStock() {
		stock --;
	}
	
	public void setStock(int stock) {
		this.stock = stock;
	}
	
	public int getStock() {
		return stock;
	}
	
	public void setQuality(int quality) {
		this.quality = quality;
	}
	
	public int getQuality() {
		return quality;
	}
	
	public void setPrice(int price) {
		this.price = price;
	}
	
	public int getPrice() {
		return price;
	}
	
	public String getType() {
		return type;
	}
	
	public String toString() {
		return "Product[type: " + type + ", stock: " + stock + ", price: " + price + "]";
	}
}
